import request from '@/utils/request'

// 查询校验周期维护列表
export function listPeriod(query) {
  return request({
    url: '/equipment/period/list',
    method: 'get',
    params: query
  })
}

// 查询校验周期维护详细
export function getPeriod(id) {
  return request({
    url: '/equipment/period/' + id,
    method: 'get'
  })
}

// 新增校验周期维护
export function addPeriod(data) {
  return request({
    url: '/equipment/period',
    method: 'post',
    data: data
  })
}

// 修改校验周期维护
export function updatePeriod(data) {
  return request({
    url: '/equipment/period',
    method: 'put',
    data: data
  })
}

// 删除校验周期维护
export function delPeriod(id) {
  return request({
    url: '/equipment/period/' + id,
    method: 'delete'
  })
}
